
package com.joysuch.wwyt.monitoringcenter.service;


import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.monitoringcenter.InspectionSearchBean;
import com.joysuch.wwyt.monitoringcenter.bean.AlarmCenterHandlerBean;
import com.joysuch.wwyt.monitoringcenter.bean.AlarmCenterQueryBean;
import org.springframework.data.domain.Pageable;

import java.time.LocalDateTime;
import java.util.Map;


public interface AlarmCenterService {

    ResultBean queryAlarmMesssage(AlarmCenterQueryBean queryBean);

    AlarmCenterHandlerBean getAlarmHandlerDetail(Long id, String module);

    ResultBean hardzardPage(Pageable pageable, AlarmCenterQueryBean queryBean);

    ResultBean riskAreaPage(Pageable pageable, AlarmCenterQueryBean queryBean);

    ResultBean harzardCount();

    ResultBean riskAreaCount();

    ResultBean alarmSummary(Integer days);

    ResultBean todayAlarm();

    ResultBean inspectPage(InspectionSearchBean bean);

    Integer inspectCount(Long tenentId, String orgCode);

    /**
     * 报警趋势
     * @param startTime 开始日期
     * @param endTime 结束日期
     * @return
     */
    Map<String,Object> alarmTrendStatistics(String startTime, String endTime);

}
